package com.homegoods.designer.model;

import com.homegoods.designer.item.DesignerItem;
import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;


/**
 * @author QiQi
 */
public class DesignerModel extends BaseModel<DesignerItem> {

    /**
     * "num": "1",
     * "sid": "fAN1%2frDw%2fpf5SZwQJpKlXlQ1TS26ZykUOBbnjTQegRsawwKscvga6kr6nnzgNUcc",
     * "bgimg": "",
     * "type": 1,
     * "name": "一迦",
     * "jingyan": 0,
     * "fanwei": 0,
     * "baojia": 15
     */
    private String num;
    private String sid;

    /**
     * 设计师名字
     */
    private String name;
    /**
     * 设计师头像
     */
    private String bgimg;

    /**
     * 设计经验
     */
    private int jingyan;

    /**
     * 设计师分类
     */
    private int type;

    /**
     * 范围
     */
    private int fanwei;

    /**
     * 报价
     */
    private String baojia;

    /**
     * 星级
     */
    private int level;

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getName() {
        return name == null ? "" : name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBgimg() {
        return bgimg == null ? "" : bgimg;
    }

    public void setBgimg(String headUrl) {
        this.bgimg = headUrl;
    }

    public int getJingyan() {
        return jingyan;
    }

    public void setJingyan(int exp) {
        this.jingyan = exp;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getFanwei() {
        return fanwei;
    }

    public void setFanwei(int scope) {
        this.fanwei = scope;
    }

    public String getBaojia() {
        return baojia == null ? "" : baojia;
    }

    public void setBaojia(String price) {
        this.baojia = price;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getSid() {
        return sid == null ? "" : sid;
    }

    public void setSid(String id) {
        this.sid = id;
    }

    @Override
    public DesignerItem createItem(MultiTypeAdapter adapter) {
        return new DesignerItem(this, adapter);
    }
}
